package com.example.day12_7_12_4.presenter;


import com.example.day12_7_12_4.base.BasePresenter;
import com.example.day12_7_12_4.bean.NaviBean;
import com.example.day12_7_12_4.model.MModel;
import com.example.day12_7_12_4.util.LogUtil;
import com.example.day12_7_12_4.view.MView;

public class MPresenter extends BasePresenter<MView> {

    private MModel mModel;

    @Override
    public void initModel() {
        mModel = new MModel();
        addModel(mModel);
    }

    @Override
    public void getData() {
        LogUtil.logD("7-12","getData:mPresenter");
        mModel.getData(new CallBack<NaviBean>() {
            @Override
            public void succeed(NaviBean naviBean) {
                mView.setData(naviBean);
            }

            @Override
            public void failed(String msg) {

            }
        });
    }
}
